Skip to content

Fix setTags() reference error in jeeApi & plan3d - #3408

Merged
Salvialf merged 3 commits into
developfrom
fix/setTags-ref
Sep 7, 2026
Merged

Salvialf merged 3 commits into
developfrom
fix/setTags-ref

Conversation

@Salvialf

Copy link
Copy Markdown
Contributor

Context

Following PR #3407, two additional calls to scenarioExpression::setTags() were found where a function result was passed directly as the first argument, which is declared by reference (&$_expression). This triggers a PHP "Only variables can be passed by reference" notice.

Changes

  • core/api/jeeApi.php: remove the trim() wrapper around $value before passing it to setTags (the function already trims its argument internally on line 1263)
  • core/class/plan3d.class.php: store the result of getConfiguration() in a local variable before passing it to setTags

@Salvialf Salvialf added the changelog-fix Use to generate release notes / changelog To be apply on PR label Jun 30, 2026
@Mips2648 Mips2648 added this to the 5.0 milestone Sep 5, 2026
@Salvialf
Salvialf merged commit 4c91f38 into develop Sep 7, 2026
9 of 10 checks passed
@Salvialf
Salvialf deleted the fix/setTags-ref branch September 7, 2026 07:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog-fix Use to generate release notes / changelog To be apply on PR Need approval

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants